const KoaRouter = require('@koa/router');
const { verifyAuth } = require('../middleware/login.middleware');
const { create, createReply } = require('../controller/comment.controller');
// 1. 创建login路由
const commentRouter = new KoaRouter({ prefix: '/comment' });
// 1. 增：新增评论
commentRouter.post('/', verifyAuth, create)
// 2. 增：新增回复
commentRouter.post('/reply', verifyAuth, createReply)

module.exports = commentRouter